-------------------------------------------------------------------------------
-- Kizare World
-- 4/19/2010 8:05 AM
-------------------------------------------------------------------------------
require "Areas"
require "Entities"

-------------------------------------------------------------------------------
function OnEvent(EventType, Arg1, Arg2)
	if EventType == EVENT_PLAYER_LOGGED_IN then
		if(Player_IsBanned(Arg1)) then
			Player_Warp(Arg1, "Jail", -1, -1);
		else
			Player_Warp(Arg1, "Start", -1, -1);
		end

		System_LogNotice("Warp Player! " .. Arg1);
	end
	
	if EventType == EVENT_PLAYER_LOGGED_OUT then
		Chat_Say("Bye!");

		System_LogNotice("Bye Player!");
	end
end

function OnInit()
	System_LogNotice("Server Script Started...");
	-- Called when Server is Started
end

function OnLoop()
	-- Called every Loop

	-- System_LogNotice("FPS: " .. System_GetFPS());
end

function OnCleanup()
	System_LogNotice("Server Script Shutting Down...");

	-- Called when the Server Shuts down
end

function OnError(ErrorCode, ErrorString) 
	-- Called when an error occurs
end

-------------------------------------------------------------------------------
